var path = require('path');
module.exports = {
    path: path.normalize(path.join(__dirname, '..')),
    saltValueLength: 32,
    userIdRandNumLength: 6,
    attachmentIdRandNumLength: 6,
    messageRandNumLength: 3,
    cookieSecret: 'SHUNYICHARITY2016COOKIESecret', // cookie加密秘钥
    passwordPrivateKey: 'SHUNYICHARITY2016',   // 密码加密私钥
    jwtSecretToken: "aMdoeb5ed87zorRdkD6greDML81DcnrzeSD648ferFejmplx", // jwt 秘钥
    jwtTokenExpiration: 3600000,    // jwt 超时时间
    sms: {
        appkey: '23282894',
        appsecret: '0e98d31145f488d2a3455455db1fcc82',
        url: 'http://gw.api.taobao.com/router/rest',
        // 验证码长度
        vcodeLength: 6,
        // 验证码失效时间, 单位：分钟
        vcodeExpireTime: 60,
        templateCode: {
            vcode: 'SMS_3080284'
        }
    },
    // 会话配置
    session: {
        // 失效时间, 单位：分钟
        timeout: 30
    },
    SMTPConfig:{
        host: 'smtp.exmail.qq.com',
        port: 465,
        secure:true,
        auth: {
            user: 'frankwang@thoughtvision.cn',//你真实的邮箱
            pass: 'Wang19901021Fan'//真实的密码
        }
    }
}